package com.becca.cake.core.sms.message;

import com.becca.cake.core.constant.CommonConstants;
import com.becca.cake.core.sms.SMSTemplate;

/**
 * 订单申请退款操作
 * @copyright  尊星(上海)信息科技有限公司
 * @author hejinguo
 * @date 2016年7月2日 下午10:54:37
 */
public class SmsRefundOrder extends SMSTemplate {

    /**手机号*/
    private String mobile;
    /**内容*/
    private String content;

    public SmsRefundOrder(String mobile, String content) {
        this.mobile = mobile;
        this.content = content;
        this.setSendUrl();
        this.setPhone();
        this.setMessage();
    }

    @Override
    public void setSendUrl() {
        this.sendUrl = CommonConstants.YUNPIAN_SEND_ONE;
    }

    @Override
    public void setMessage() {
        //短信内容(签名+内容)
        String userRegistMessage = CommonConstants.YUNPIAN_CAKE_SIGNATURE
                                   + CommonConstants.YUNPIAN_REFUND_ORDER_MESSAGE;
        this.msgData = userRegistMessage.replace("#content#", content);
    }

    @Override
    public void setPhone() {
        this.phone = mobile;
    }

}
